package com.ev.framework.config;

import com.ev.custom.dao.DictionaryDao;
import com.ev.custom.domain.DictionaryDO;
import com.ev.custom.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.List;

/**
 * 公用常量类
 */
public class Constant {

    @Autowired
    private DictionaryService dictionaryService;

    private Constant(){}

    /**
     * 企业微信配置
     */
    public static final String QIYE_WECHAT_SETTING = "QIYE_WECHAT_SETTING";
    //演示系统账户
    public static final String DEMO_ACCOUNT = "test";
    //自动去除表前缀
    public static final  String AUTO_REOMVE_PRE = "true";
    //部门根节点id
    public static final Long DEPT_ROOT_ID = 0L;
    //缓存方式
    public static final String CACHE_TYPE_REDIS ="redis";
    public static final String LOG_ERROR = "error";

    public static final String REDIS_USER_TOKEN_PREFIX = "shiro_redis_session:";

    public static final String REDIS_SHORT_CUT_PREFIX = "shot-cut:";

    public static final String SERVICE_ROLE = "服务专员";

    public static final String ADMIN_ROLE = "超级用户角色";
    public static final String APPID_WECHAT = "wx04bd47526bcc5d43";

    public static final String APPSECRET_WECHAT = "e0df40629f1138c436b8073488a97929";

    public static final String TABLE_COLUMN = "tableColumn";

    public static final String WECHAT_ACCESS_TOKEN = "weChat:accessToken";

    public static final String WECHAT_MOBILE_ACCESS_TOKEN = "weChat:mobileAccessToken";

    public static final String WECHAT_JSAPI_TICKET = "weChat:jsApiTicket";

    public static final Integer BIGDECIMAL_ZERO = 4;

    public static final Integer BIGDECIMAL_ZERO_FOR_AMOUNT = 2;

    /**
     * 全部
     */
    public static final Long ALL_DATA = 243L;
    /**
     * 本部门及下属部门
     */
    public static final Long SUBORDINATE_DEPT_DATA = 244L;
    /**
     * 本部门
     */
    public static final Long THIS_DEPT_DATA = 245L;
    /**
     * 个人
     */
    public static final Long PERSONAL_DATA = 246L;
    /**
     * 自定义数据权限
     */
    public static final Long CUSTOM_DATA = 247L;
    /**
     * 暂存
     */
    public static final Long TS = 146L;
    /**
     * 待审核
     */
    public static final Long WAIT_AUDIT = 178L;
    /**
     * 已审核
     */
    public static final Long OK_AUDITED = 179L;

    public static final Long WORK_SHOP = 55L;
    /**
     * 员工头像
     */
    public static final String HEAD_PORTRAIT = "HEAD_PORTRAIT";

    /**
     * 岗位说明书
     */
    public static final String POSITION_DESCRIPTION = "POSITION_DESCRIPTION";


    // 车间
    public static final Long DEPT_TYPE_WORK_SHOP = 55L;

    public static final String KELIWU = "颗粒物测定";

    public static final String HOUDU = "厚度";

    public static final String WAIGUAN = "外观检查";
    public static final String YANSE = "颜色";
    public static final String MI = "MI";
    public static final String MIDU = "密度";

    public static final String SHUAILUO = "摔落试验";

    public static final String LOUSHUI = "漏水试验";

    public static final String QIMI = "气密检查";

    public static final String ZHURUKOUH = "注入口内径H";

    public static final String ZHURUKOUG = "注入口内径G";

    public static final String ZHURUKOU = "注入口内径";

    public static final String GAODU = "高度";

    public static final String KUANDU = "宽度";

    public static final String ZHONGLIANG = "重量";

    public static final String RONGJI = "容积";

    //边角料ID
    public static  Long BJL = 1857l;

    //成型日报原料投入量领料车间库
    public static  Long warehouse2 = 382l;

    //成型日报不良数量入库不良品库
    public static  Long warehouse3 = 329l;
//
//    //成型日报不良数量入库不良品库位
//    public static  Long warehLocation3 = 31l;

    //成型日报生产数量-不良数量入库车间库
    public static  Long warehouse4 = 329l;
//
//    //成型日报生产数量-不良数量入库车间库位
//    public static  Long warehLocation4 = 31l;

//  ////////////////////////////////////////////////////////////

    //组装日报使用数量领料车间库
    public static Long warehouse6 = 382l;

    //组装日报合格数量入库车间库
    public static Long warehouse8 = 329l;

    //组装日报合格数量入库车间库位
    public static Long warehLocation9 = 31l;

    //组装日报不良数量入库不良品库
    public static Long warehouse7 = 329l;

    //组装日报不良数量入库不良品库位
    public static Long warehLocation7 = 31l;

    //过期报废仓库
    public static Long warehouse10 = 2034l;

    //保养执行待处理
    public static Long UPKEEPWAITDEL = 330L;

    //保养执行待审核
    public static Long UPKEEPWAITAUDIT =331L;

    //点检执行待处理
    public static Long PATROLWAITDEL = 332L;

    //保养执行待审核
    public static Long PATROLWAITAUDIT = 333L;

    //品质部部门id
    public static Long QUALITY_DEPT = 266L;

    //品质部部长id
    public static Long QUALITY_DEPT_MANAGER = 271L;

//    //组装日报合格数量入库车间库位
//    public static Long warehLocation8 = 31l;

}
